#include <unistd.h>
#include <sys/time.h>
#include "ini.h"
#include <iostream>
static unsigned int cycle = 10000;        //us 执行时间间隔

int main(void)
{
    double kp,ki,kd;
    for(int i=0;i<10000;i++){

        usleep(cycle);
        kp=ini["kp"];
        ki=ini["ki"];
        std::cout<<i<<"kp_zhhw: "<<kp<<"; ki_zhhw: "<<ki<<std::endl;
    }
return 0;
}
